home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1830 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  704 b 

  1. Path: news.production.compuserve.com!news
  2. From: Don Dischner <76012.2511@CompuServe.COM>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Using multiple functions in one file
  5. Date: 13 Jan 1996 01:48:00 GMT
  6. Organization: CompuServe, Inc. (1-800-689-0736)
  7. Message-ID: <4d730g$lgc$1@mhafc.production.compuserve.com>
  8. References: <DL00rI.HFr@cunews.carleton.ca>
  9.  
  10. The reason you get this is because there is no prototype
  11. for the butler function.  Look in your book for how to define
  12. function prototypes, like this.
  13.  
  14. void butler(void);
  15.  
  16. Also, another approach is to move the butler function above
  17. your main in your source file.  This will work but I
  18. HIGHLY recommend that you learn about function prototypes.
  19.  
  20. Good Luck!
  21.